// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   PoolConfig.java

package org.quickserver.util.xmlreader;

import java.io.Serializable;

public class PoolConfig
    implements Serializable
{

    public PoolConfig()
    {
        maxActive = -1;
        maxIdle = 50;
        initSize = 25;
        timeBetweenEvictionRunsMillis = 0x2bf20L;
        minEvictableIdleTimeMillis = 0x1d4c0L;
    }

    public int getInitSize()
    {
        if(maxIdle != -1 && initSize > maxIdle)
            return maxIdle;
        else
            return initSize;
    }

    public void setInitSize(int initSize)
    {
        this.initSize = initSize;
    }

    public int getMaxActive()
    {
        return maxActive;
    }

    public void setMaxActive(int maxActive)
    {
        this.maxActive = maxActive;
    }

    public int getMaxIdle()
    {
        return maxIdle;
    }

    public void setMaxIdle(int maxIdle)
    {
        this.maxIdle = maxIdle;
    }

    private int maxActive;
    private int maxIdle;
    private int initSize;
    private long timeBetweenEvictionRunsMillis;
    private long minEvictableIdleTimeMillis;
}
